﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace University.Workshop.Presenters.Square.Modify
{
    public class PresenterFirstStepForModifySquare
    {
        IFirstStepForModifySquare view;
        public PresenterFirstStepForModifySquare(IFirstStepForModifySquare view)
        {
            this.view = view;
        }

        public void UpdateData()
        {
            view.SquareId = view.SquareToModify.SquareId;
            view.CommentSquare = view.SquareToModify.Comment;
            view.UbicationCroquisSquare = view.UbicationCroquisSquareToModify;
        }

        public void ChargeDataMedicineProduct()
        {
            view.SquareToModify.Comment = view.CommentSquare;
        }

        public void LoadImage()
        {
            string ubicationCroquis = view.UbicationCroquisSquare;
            view.UbicationCroquisSquareToModify = ubicationCroquis;
            view.UbicationCroquisSquare = ubicationCroquis;
        }
    }
}
